package cn.java71.springboot.demo1.ctrl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;

/**
 * @author oldliu
 * @since 1.0
 */
@RestController
public class ConfigController {

    //    @Autowired
//    private Config conf;
//
//    @GetMapping("showConfig")
//    public String showConfig(){
//        return String.valueOf(conf);
//    }
    @Autowired
    private SchoolConfig school;
    @GetMapping("showConfig2")
    public String showConfig(){
        return String.valueOf(school);
    }
}
